package com.ruiysoft.service.integral;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruiysoft.controller.integral.vo.IntegralRechargeVo;
import com.ruiysoft.entity.integral.Integral;
import com.ruiysoft.service.integral.bean.IntegralCondition;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liyahui
 * @since 2019-04-13
 */
public interface IIntegralService extends IService<Integral> {

    QueryWrapper<Integral> getWapperByCondition(IntegralCondition integralCondition);


    void recharge(IntegralRechargeVo recharge, Long shopId);

    void consume(Long shopId, Long userId, Long integral, String tradeNo);

    void refund(Long shopId, Long userId, Long integral, String tradeNo);
}
